package com.belizer.demo.thread;

public class Demo3 {
    public static void main(String[] args) {

        //子线程内抛出异常
        Thread t = new Thread(()->{
            //模拟任务执行中出现异常
            int i = 1/0;
        });

        t.start();


        Thread t2 = new Thread(()->{
            //任务正常执行，返回结果
            System.out.println("t2 execute success");
        });

        t2.start();

    }
}
